package com.zy.design.state.common;

/**
 * @author zhaoyi
 * @date 2021/9/23 13:12
 */
public class FireMario implements IMario {


    private FireMario() {
    }

    private static final FireMario instance = new FireMario();

    public static FireMario getInstance() {
        return instance;
    }


    @Override
    public void eatMustRoom(MStateMachine machine) {
        System.out.println("什么也不做 ");
    }

    @Override
    public void eatCape(MStateMachine machine) {
        System.out.println("什么也不做 ");
    }

    @Override
    public void eatFire(MStateMachine machine) {
        System.out.println("什么也不做 ");
    }

    @Override
    public void monster(MStateMachine machine) {
        machine.setMario(SmallMario.getInstance());
        machine.setScore(machine.getScore()-300);
    }

    @Override
    public String getStatus() {
        return "火焰玛丽奥";
    }

}
